<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifyXzStatusToRepayRecord extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('repay_records', function (Blueprint $table) {
            $table->integer('xz_status')->default(1)->comment('1:未销账,2:销账中,3:销账失败,4:已销账')->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('repay_records', function (Blueprint $table) {
            $table->integer('xz_status')->default(0)->comment('销账状态0:未销账1:销账中2:已销账3:销账失败')->change();
        });
    }
}
